<template>
  <div class="card">
    <moduleHead title="终止信息"></moduleHead>
    <el-form class="key-value" label-width="110px" v-if="details.overWorkOrderVo">
      <el-form-item label="终止类型：">
        <div>{{ details.overWorkOrderVo.reason }}</div>
      </el-form-item>
      <el-form-item label="终止备注：">
        <div v-html="txt2HTML(details.overWorkOrderVo.comment || '-')"></div>
      </el-form-item>
      <el-form-item v-if="details.overWorkOrderVo.reportFile && details.overWorkOrderVo.reportFile.length" label="终止意见书：">
        <upload-preview :file-list="details.overWorkOrderVo.reportFile" btnType="text"></upload-preview>
      </el-form-item>
      <!-- <el-form-item v-if="details.workOrderHandleInfo && details.workOrderHandleInfo.acceptAttachmentList" label="" label-width="0">
        <upload-preview :file-list="details.workOrderHandleInfo" btnType="text"></upload-preview>
      </el-form-item> -->
      <el-form-item v-if="details.overWorkOrderVo.reportNoticeFile && details.overWorkOrderVo.reportNoticeFile.length" label="终止通知书：">
        <upload-preview :file-list="details.overWorkOrderVo.reportNoticeFile" btnType="text"></upload-preview>
      </el-form-item>
      <el-form-item v-if="details.overWorkOrderVo.attachmentList && details.overWorkOrderVo.attachmentList.length" label="附件：">
        <upload-preview :file-list="details.overWorkOrderVo.attachmentList" btnType="text"></upload-preview>
      </el-form-item>
      <!-- <el-form-item v-if="details.workOrderHandleInfo && details.workOrderHandleInfo.acceptAttachmentList" label="" label-width="0">
        <upload-preview :file-list="details.workOrderHandleInfo" btnType="text"></upload-preview>
      </el-form-item> -->
    </el-form>
  </div>
</template>

<script>
import UploadPreview from "@/components/uploadInput/uploadPreview.vue";
import { txt2HTML } from "@/utils/filters";
export default {
  name: "CaseHandling",
  components: { UploadPreview },
  filters: {},
  props: {
    details: {
      type: Object,
      default: () => {},
    },
  },
  data() {
    return {};
  },
  computed: {},
  watch: {},

  created() {},
  methods: { txt2HTML },
};
</script>
<style lang="less" scoped>
.el-form-item__content {
  div {
    word-break: break-all;
  }
}
</style>
